package com.ruoyi.custom.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;


import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 客户回款对象 tb_back
 *
 * @author ruoyi
 * @date 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="tb_back")
@ApiModel(value = "TbBack ", description = "客户回款对象")
public class TbBack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 编号 */
    @ApiModelProperty("编号")
    @Excel(name = "编号")
    private String no;

    /** 客户id */
    @ApiModelProperty("客户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long customId;

    /** 客户编号 */
    @ApiModelProperty("客户编号")
    @Excel(name = "客户编号")
    private Long customNo;

    /** 客户名称 */
    @ApiModelProperty("客户名称")
    @Excel(name = "客户名称")
    private String customName;

    /** 业务类型 */
    @ApiModelProperty("业务类型")
    @Excel(name = "业务类型")
    private String type;

    private Long userId;
    /** 业务员 */
    @ApiModelProperty("业务员")
    @Excel(name = "业务员")
    private String userName;

    /** 回款金额 */
    @ApiModelProperty("回款金额")
    @Excel(name = "回款金额")
    private BigDecimal backMoney;

    /** 回款时间 */
    @ApiModelProperty("回款时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date backTime;

    /** 佣金比例 */
    @ApiModelProperty("佣金比例")
    @Excel(name = "佣金比例")
    private Integer rate;

    /** 佣金金额 */
    @ApiModelProperty("佣金金额")
    @Excel(name = "佣金金额")
    private BigDecimal rateMoney;


}
